//compass module i2c address
#define compassModuleAddress	0x3C

//compass module registers addresses
#define configurationRegisterA	0x00
#define configurationRegisterB	0x01
#define modeRegister	0x02
#define	dataOutputXMSBRegister	0x03
#define dataOutputXLSBRegister	0x04
#define	dataOutputZMSBRegister	0x05
#define dataOutputZLSBRegister	0x06
#define	dataOutputYMSBRegister	0x07
#define dataOutputYLSBRegister	0x08
#define statusRegister	0x09
#define	identifiactionRegisterA	0x10
#define	identifiactionRegisterB	0x11
#define	identifiactionRegisterC	0x12

//compass operation mode
#define	countinuousMeasurementMode	0x00
#define	singleMeasurementMode	0x01
#define	idleMode1	0x02
#define	idleMode2	0x03


//example:	writeByteI2C1(compassModuleAddress,modeRegister,singleMeasurementMode);
